package InventoryNRMSystem;


/**
 * Generated from IDL struct "SlotInfoType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class SlotInfoTypeHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(InventoryNRMSystem.SlotInfoTypeHelper.id(),"SlotInfoType",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("slotId", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("description", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("SlotStatus", InventoryNRMSystem.InventoryStatusTypeHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final InventoryNRMSystem.SlotInfoType s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static InventoryNRMSystem.SlotInfoType extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:InventoryNRMSystem/SlotInfoType:1.0";
	}
	public static InventoryNRMSystem.SlotInfoType read (final org.omg.CORBA.portable.InputStream in)
	{
		InventoryNRMSystem.SlotInfoType result = new InventoryNRMSystem.SlotInfoType();
		result.slotId=in.read_string();
		result.description=in.read_string();
		result.SlotStatus=InventoryNRMSystem.InventoryStatusTypeHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final InventoryNRMSystem.SlotInfoType s)
	{
		out.write_string(s.slotId);
		out.write_string(s.description);
		InventoryNRMSystem.InventoryStatusTypeHelper.write(out,s.SlotStatus);
	}
}
